package cn.yitun.chat.yitunservercommonlib.converter.po2vo.contact;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactCategoryInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactCategoryVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactCategoryPo2VoConverter {

    ContactCategoryPo2VoConverter INSTANCE = Mappers.getMapper(ContactCategoryPo2VoConverter.class);

    ContactCategoryInfo vo2po(ContactCategoryVo vo);

    List<ContactCategoryInfo> vo2po(List<ContactCategoryVo> voList);

    @InheritInverseConfiguration
    ContactCategoryVo po2vo(ContactCategoryInfo dto);

    @InheritInverseConfiguration
    List<ContactCategoryVo> po2vo(List<ContactCategoryInfo> dtoList);
}
